package com.tongji.quickCRUDQ.service.impl;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.tongji.quickCRUDQ.dao.BaseDao;
import com.tongji.quickCRUDQ.dao.id.IdGenerator;
import com.tongji.quickCRUDQ.dao.jdbc.ColumnDao;
import com.tongji.quickCRUDQ.dao.jdbc.CommonDao;
import com.tongji.quickCRUDQ.service.BaseManager;

/**
 * Base class for Business Services - use this class for utility methods and
 * generic CRUD methods.
 * 
 * <p><a href="BaseManager.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
public class BaseManagerImpl implements BaseManager {
    protected final Log log = LogFactory.getLog(getClass());
    protected BaseDao baseDao = null;
    private CommonDao commonDao;
    private ColumnDao columnDao;
    private IdGenerator idGenerator;
    
    /**
     * @see com.hq.material.service.Manager#setBaseDao(com.hq.material.dao.Dao)
     */
    public void setBaseDao(BaseDao baseDao) {
        this.baseDao = baseDao;
    }
    
    
	/**
	 * @return Returns the commonDao.
	 */
	public CommonDao getCommonDao() {
		return commonDao;
	}
	/**
	 * @param commonDao The commonDao to set.
	 */
	public void setCommonDao(CommonDao commonDao) {
		this.commonDao = commonDao;
	}
	/**
	 * @return Returns the columnDao.
	 */
	public ColumnDao getColumnDao() {
		return columnDao;
	}
	/**
	 * @param columnDao The columnDao to set.
	 */
	public void setColumnDao(ColumnDao columnDao) {
		this.columnDao = columnDao;
	}
	/**
	 * @return Returns the idGenerator.
	 */
	public IdGenerator getIdGenerator() {
		return idGenerator;
	}
	/**
	 * @param idGenerator The idGenerator to set.
	 */
	public void setIdGenerator(IdGenerator idGenerator) {
		this.idGenerator = idGenerator;
	}
}
